<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String basePath = request.getContextPath();
%>
<html>
	<head>
		<title>费用支出信息</title>
		<link rel="stylesheet" href="<%=basePath%>/css/style.css" type="text/css" />
		<script language="javascript">var baseUrl = "<%=basePath%>";</script>
		<script type="text/javascript" src="<%=basePath%>/js/My97DatePicker/WdatePicker.js"></script>
	</head>
	<body>
		<form action="<%=basePath%>/order/saveGroupOrderPayout.do" method="post" name="saveForm" id="saveForm">
			<input type="hidden" name="groupOrderPayout.idGroupOrder" value="<s:property value="idGroupOrder"/>"/>
			<table id="edittable" style="width:100%;" align="center">
				<tr>
					<td colspan="6" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
						添加支出记录
					</td>
				</tr>
				<tr>
					<td class="column_name">
						类型：
					</td>
					<td class="column_input">
						<s:select list="payoutTypeList" name="groupOrderPayout.idPayoutType" listKey="id" listValue="typeName" headerKey="-1" headerValue="请选择..."></s:select> 
					</td>
					<td class="column_name">
						日期：
					</td>
					<td class="column_input">
						<input type="text" value="" name="payDate" id="payDate" readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"/>
					</td>
				</tr>
				<tr>
					<td class="column_name">
						金额：
					</td>
					<td class="column_input">
						<input type="text" value="" name="groupOrderPayout.amount" id="amount" /> 
					</td>
					<td class="column_name">
						备注：
					</td>
					<td class="column_input">
						<input type="text" value="" name="groupOrderPayout.comments" id="comments" />
					</td>
				</tr>
				<tr>
					<td class="column_name" colspan="4">
						<input type="submit" value="提交"/>
					</td>
				</tr>
			</table>
		</form>
		<table id="edittable" style="width:100%;" align="center">
			<tr>
				<td colspan="4" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
					费用支出记录
				</td>
			</tr>
			<tr bgcolor="#cccccc">
				<td>费用类型</td>
				<td>付款日期</td>
				<td>付款金额</td>
				<td>备注</td>
			</tr>
			<s:iterator value="payoutList">
			<tr>
				<td>
					<s:property value="payoutType"/>
				</td>
				<td>
					<s:date name="payDate" format="yyyy-MM-dd"/>
				</td>
				<td>
					<s:property value="amount"/>
				</td>
				<td>
					<s:property value="comments"/>
				</td>
			</tr>
			</s:iterator>
		</table>
	</body>
</html>
